package rowingmanager.domain
class Image {  //container for data.
// I decoupeled image info from it's raw data, because I don't want all that images occupying
//my memmory when ever I need only the image name
   ImageData imageData
   int size
   String extension
   String filename
   static constraints = {
     imageData(nullable:false)
     size(nullable:false)
     extension(nullable:false,inList:['jpeg','jpg','gif','bmp','png'])
     filename(nullable:false)
   }

  static belongsTo = Organization
}
